package com.bdth.service.impl;

import com.bdth.mapper.UserDepartmentMapper;
import com.bdth.model.UserDepartmentKey;
import com.bdth.service.IUserDepService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

@Service
public class UserDepServiceImpl extends BaseServiceImpl<UserDepartmentKey> implements IUserDepService {

	@Autowired
	private UserDepartmentMapper userDepartmentMapper;

	@Override
	public void deleteByUserId(Integer userId) {
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("userID", userId);
		userDepartmentMapper.deleteByUserId(param);
	}
}
